<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head lang="en">
    <meta charset="UTF-8">
    <title>系统登录 - 超市管理系统</title>
<!--    <link rel="stylesheet" th:href="@{css/public.css}" />-->
    <link rel="stylesheet" href="css/style.css"/>
</head>
<body class="login_bg">
    <section class="loginBox">
        <header class="loginHeader">
            <h1>超市管理系统</h1>
        </header>
        <section class="loginCont">
<!--            <label ><a th:text="${session.msg.getMsg()}"></a></label>-->
            <form class="loginForm" method="post"  action="reciveLoginInfo"   >
                <div class="inputbox">



                    <label for="user">用户名：</label>
                    <input id="user" type="text" name="userName" placeholder="请输入用户名" required/>
                </div>
                <div class="inputbox">
                    <label for="mima">密码：</label>
                    <input id="mima" type="password" name="passWord" placeholder="请输入密码" required/>
                </div>
                <div class="subBtn">
<!--                           <a th:href="@{/index.html}">-->
                    <a th:href="@{/indexPage}">
                        <input type="submit"  value="登录"  />
                    </a>

<!--                               <button type="submit" >登录</button>-->
<!--                           </a>-->

                    <input type="reset" value="重置"/>
                </div>

            </form>
        </section>
    </section>


</body>
<!--<script src="js/jquery.js"></script>-->
<!--<script>-->


<!--    function login(){-->

<!--        console.log('现在去登录啦！')-->

<!--        window.open('index.html')-->

<!--    }-->




<!--function loginSubmit() {-->
<!--    console.log("@@@@@@@@@@@@@@@@@@");-->
<!--    var user = document.getElementById("user").value;-->
<!--    var pwd = document.getElementById("mima").value;-->
<!--    console.log("!!!!!!!!!!!!!!!!!!");-->
<!--    console.log(user);-->
<!--    console.log(pwd);-->
<!--    $.ajax({-->
<!--        type: 'GET',-->
<!--        url: '/reciveLoginInfo',-->
<!--        contentType: "application/json",-->
<!--        data: {"userName":user, "password":pwd},-->
<!--        async:false,-->
<!--        // dataType: "json",-->
<!--        success(res) {-->
<!--            location.reload();-->
<!--            window.username = user;-->
<!--            alert(res+"登录成功")-->
<!--            // window.location.assign('index.html')-->
<!--        }-->
<!--    })-->

<!--}-->
<!--</script>-->

</html>